package com.xinchao.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 广告常量类
 *
 * @author dxy
 * @date 2018/9/19 15:47
 */
public class AdvertisementConstant {
	/**
	 * 广告状态-待审核
	 */
	public static final int ADVERTISEMENT_STATUS_AUDITING = 0;
	/**
	 * 广告状态-上线
	 */
	public static final int ADVERTISEMENT_STATUS_ONLINE = 1;
	/**
	 * 广告状态-下线
	 */
	public static final int ADVERTISEMENT_STATUS_OFFLINE = 2;
	/**
	 * 广告状态
	 */
	public static final Map<Integer, String> ADVERTISEMENT_STATUS_MAP = new HashMap<>();
	static {
		ADVERTISEMENT_STATUS_MAP.put(ADVERTISEMENT_STATUS_AUDITING, "待审核");
		ADVERTISEMENT_STATUS_MAP.put(ADVERTISEMENT_STATUS_ONLINE, "上线");
		ADVERTISEMENT_STATUS_MAP.put(ADVERTISEMENT_STATUS_OFFLINE, "下线");
	}

	/**
	 * 性别-男
	 */
	public static final int SEX_MALE = 1;
	/**
	 * 性别-女
	 */
	public static final int SEX_FEMALE = 0;
	/**
	 * 性别-不限
	 */
	public static final int SEX_NO = 2;
	/**
	 * 性别
	 */
	public static final Map<Integer, String> SEX_MAP = new HashMap<>();
	static {
		SEX_MAP.put(SEX_MALE, "男");
		SEX_MAP.put(SEX_FEMALE, "女");
		SEX_MAP.put(SEX_NO, "不限");
	}
	/***--------------------------年龄范围（中文）-------------------------*/
	/**
	 * 19岁及以下
	 */
	public static final String UNDER_NINETEEN_CH = "19岁及以下";
	/**
	 * 20岁~25岁
	 */
	public static final String TWENTY_AND_TWENTYFIVE_CH = "20岁~25岁";
	/**
	 * 26岁~35岁
	 */
	public static final String TWENTYSIX_AND_THIRTYFIVE_CH = "26岁~35岁";
	/**
	 * 36岁~45岁
	 */
	public static final String THIRTYSIX_AND_FOURTYFIVE_CH = "36岁~45岁";
	/**
	 * 46岁~55岁
	 */
	public static final String FOURTYSIXE_AND_FIFTYFIVE_CH = "46岁~55岁";
	/**
	 * 56岁及以上
	 */
	public static final String ABOVE_FIFTYFIVE_CH = "56岁及以上";
	/**
	 * 年龄范围列表
	 */
	public static final List<String> AGE_RANGE_LIST = new ArrayList<>();
	static {
		AGE_RANGE_LIST.add(UNDER_NINETEEN_CH);
		AGE_RANGE_LIST.add(TWENTY_AND_TWENTYFIVE_CH);
		AGE_RANGE_LIST.add(TWENTYSIX_AND_THIRTYFIVE_CH);
		AGE_RANGE_LIST.add(THIRTYSIX_AND_FOURTYFIVE_CH);
		AGE_RANGE_LIST.add(FOURTYSIXE_AND_FIFTYFIVE_CH);
		AGE_RANGE_LIST.add(ABOVE_FIFTYFIVE_CH);
	}
	/***--------------------------年龄范围（英语）-------------------------*/
	/**
	 * UNDER_NINETEEN
	 */
	public static final String UNDER_NINETEEN_EN = "UNDER_NINETEEN";
	/**
	 * TWENTY_AND_TWENTYFIVE
	 */
	public static final String TWENTY_AND_TWENTYFIVE_EN = "TWENTY_AND_TWENTYFIVE";
	/**
	 * TWENTYSIX_AND_THIRTYFIVE
	 */
	public static final String TWENTYSIX_AND_THIRTYFIVE_EN = "TWENTYSIX_AND_THIRTYFIVE";
	/**
	 * HIRTYSIX_AND_FOURTYFIVE
	 */
	public static final String THIRTYSIX_AND_FOURTYFIVE_EN = "HIRTYSIX_AND_FOURTYFIVE";
	/**
	 * FOURTYSIXE_AND_FIFTYFIVE
	 */
	public static final String FOURTYSIXE_AND_FIFTYFIVE_EN = "FOURTYSIXE_AND_FIFTYFIVE";
	/**
	 * ABOVE_FIFTYFIVE
	 */
	public static final String ABOVE_FIFTYFIVE_EN = "ABOVE_FIFTYFIVE";
	/**
	 * 此字典主要配置中文年龄范围对应英文年龄范围
	 */
	public static final Map<String, String> AGE_RANGE_MAP = new HashMap<>();
	static {
		AGE_RANGE_MAP.put(UNDER_NINETEEN_CH, UNDER_NINETEEN_EN);
		AGE_RANGE_MAP.put(TWENTY_AND_TWENTYFIVE_CH, TWENTY_AND_TWENTYFIVE_EN);
		AGE_RANGE_MAP.put(TWENTYSIX_AND_THIRTYFIVE_CH, TWENTYSIX_AND_THIRTYFIVE_EN);
		AGE_RANGE_MAP.put(THIRTYSIX_AND_FOURTYFIVE_CH, THIRTYSIX_AND_FOURTYFIVE_EN);
		AGE_RANGE_MAP.put(FOURTYSIXE_AND_FIFTYFIVE_CH, FOURTYSIXE_AND_FIFTYFIVE_EN);
		AGE_RANGE_MAP.put(ABOVE_FIFTYFIVE_CH, ABOVE_FIFTYFIVE_EN);
	}

	/**
	 * 是否是平宣广告-是
	 */
	public static final int DECLARE_GOODS_ADVERTISEMENT_YES = 0;
	/**
	 * 是否是平宣广告-否
	 */
	public static final int DECLARE_GOODS_ADVERTISEMENT_NO = 1;
	/**
	 * 终端的上一条广告（记录终端播放的上一条广告）
	 */
	public static final String DEVIICE_PREVIOUS_ADVERTISEMENT = "device_previous_advertisement";

}
